<?php
$this->breadcrumbs = array(
    'Manage Yard Sales' => array('index'),
    'View a Yard Sale'
);
?><h3 class="header smaller lighter blue">View a Yard Sale</h3>
<?php
$this->widget('zii.widgets.CDetailView', array(
    'data' => $model,
    'attributes' => array(
    	array('type'=>'raw',
            'name' => 'cover_photo',
            'value' => CHtml::image(Yii::app()->baseUrl.'/timthumb.php?src=' . Yii::app()->baseUrl .'/images/post/'. $model['cover_photo'].'&h=100&w=100"')
         ),
        array(
            'label' => 'User post',
            'value' => $model['user']['first_name'] .' ' . $model['user']['last_name']
        ),
        'title',
        'description:html',
        array('type' => 'raw',
        	'name' => 'start_date',
        	'value' => $model['start_date']
        ),
        array('type' => 'raw',
        	'name' => 'updated_date',
        	'value' => $model['end_date']
        ),
        'timer',
        array('type' => 'raw',
        	'name' => 'address',
        	'value' => $model['street'] . ', '. $model['city'] .', ' . $model['state']),
        'zip',
        array('type' => 'raw',
        	'name' => 'created_date',
        	'value' => date('Y/m/d', $model['created_date'])),
        array('type' => 'raw',
        	'name' => 'updated_date',
        	'value' => date('Y/m/d', $model['updated_date']))
    ),
));
?>